package com.darly.book.presenter.contract;

import com.darly.book.model.flag.BookDistillate;
import com.darly.book.model.flag.BookSort;
import com.darly.book.model.flag.BookType;
import com.darly.book.ui.base.BaseContract;
import com.darly.chinese.db.book.table.BookReviewBean;

import java.util.List;

public interface DiscReviewContract {
    interface View extends BaseContract.BaseView {
        void finishRefresh(List<BookReviewBean> beans);

        void finishLoading(List<BookReviewBean> beans);

        void showErrorTip();
    }

    interface Presenter extends BaseContract.BasePresenter<View> {
        void firstLoading(BookSort sort, BookType bookType, int start, int limited, BookDistillate distillate);

        void refreshBookReview(BookSort sort, BookType bookType, int start, int limited, BookDistillate distillate);

        void loadingBookReview(BookSort sort, BookType bookType, int start, int limited, BookDistillate distillate);

        void saveBookReview(List<BookReviewBean> beans);
    }
}
